<template>
  <div class="main-container">
    <el-tabs tab-position="left" class="fix-el-tabs-sys-info">
      <el-tab-pane label="账号安全策略">
        <div class="tab-container">
          <h1>账号安全策略</h1>
          <account-form></account-form>
        </div>
      </el-tab-pane>
      <el-tab-pane label="密码安全策略">
        <div class="tab-container">
          <h1>密码安全策略</h1>
          <password-form></password-form>
        </div>
      </el-tab-pane>
      <el-tab-pane label="系统环境信息">
        <div class="tab-container">
          <h1>系统环境信息</h1>
          <info-from></info-from>
        </div>
      </el-tab-pane>
      <el-tab-pane label="系统检测工具">
        <div class="tab-container">
          <h1>系统检测工具</h1>
          <el-button type="primary">查询当前用户</el-button>
          <el-button type="primary">查询内存使用情况</el-button>
          <el-button type="primary">查询 java 进程</el-button>
          <el-button>查询 jvm 使用情况</el-button>
          <el-input
            v-model="console"
            :autosize="{ minRows: 12 }"
            type="textarea"
            class="console"
          ></el-input>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script setup lang="ts">
import { reactive, ref, toRefs } from "vue";
import AccountForm from "./account.vue";
import PasswordForm from "./password.vue";
import infoFrom from "./info.vue";
import utils from "../../../utils/utils";
import { useRouter } from "vue-router";

const router = useRouter();
const console = ref("");
</script>
<style scoped lang="scss">
// .sys-info-tabs .el-tabs__item.is-active {
//   background-color: var(--el-color-primary-light-9);
// }
.main-container {
  background-color: #fff;
  padding: 20px 20px 20px 0;
}
.main-container h1 {
  margin-top: 0;
  font-size: $h1-size;
  font-weight: normal;
}
.tab-container {
  padding: 0 0 0 15px;
}

.console {
  margin-top: 24px;
}
</style>
<style>
.fix-el-tabs-sys-info .el-tabs__header {
  height: 380px !important;
}
.fix-el-tabs-sys-info .el-tabs__nav-wrap::after {
  /* 边线 */
  background-color: #f0f0f0 !important;
}
.fix-el-tabs-sys-info .is-active {
  background-color: var(--el-color-primary-light-9);
}

.setting-row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}
.setting-row li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}
.setting-key {
  display: block;
  margin: 8px 0 8px 0;
  font-weight: normal;
}

.setting-value {
  display: block;
  margin: 0 0 10px 0;
  color: var(--el-text-color-secondary);
  font-size: 15px;
}
.setting-button {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 10px;
  padding-right: 10px;
}
.setting-button a {
  text-decoration: none;
}
</style>
